/**
 * jims
 */
package com.jims.master.modules.operation.entity;

import org.hibernate.validator.constraints.Length;
import com.jims.master.modules.sys.entity.User;
import javax.validation.constraints.NotNull;

import com.jims.master.common.persistence.DataEntity;

import java.beans.Transient;

/**
 * 手术申请人员Entity
 * @author DT
 * @version 2017-04-11
 */
public class OperationStaffApply extends DataEntity<OperationStaffApply> {
	
	private static final long serialVersionUID = 1L;
	private String scheduleId;		// 预约手术表id
	private String operationLocal;		// 手术位置0主刀医生,1麻醉医师，2输血医生，3麻醉助手，4医生助手，5上台护士，6供应护士
	private User user;		// 人员
	private String userId; //人员ID
	private String userIds;	//人员ID串
	private String userNames; //人员名称串

	public OperationStaffApply() {
		super();
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public OperationStaffApply(String id){
		super(id);
	}

	@Length(min=1, max=64, message="预约手术表id长度必须介于 1 和 64 之间")
	public String getScheduleId() {
		return scheduleId;
	}

	public void setScheduleId(String scheduleId) {
		this.scheduleId = scheduleId;
	}

	@Length(message = "长度必须介于 1 和 2 之间")
	public String getOperationLocal() {
		return operationLocal;
	}

	public void setOperationLocal(String operationLocal) {
		this.operationLocal = operationLocal;
	}
	
	@NotNull(message="人员ID不能为空")
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	@Transient
	public String getUserIds() {
		return userIds;
	}
	@Transient
	public void setUserIds(String userIds) {
		this.userIds = userIds;
	}
	@Transient
	public String getUserNames() {
		return userNames;
	}
	@Transient
	public void setUserNames(String userNames) {
		this.userNames = userNames;
	}
}